﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucPhoneBrand.ascx.cs"
    Inherits="UserControl_ucPhoneBrand" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<style type="text/css">
    .style1
    {
        color: black;
    }
    p
    {
        color: black;
    }
    #table
    {
        color: black;
        height: 320px;
    }
    #table3
    {
        margin-left: 272px;
        color: black;
    }
</style>
<style type="text/css">
    .style1
    {
        color: Black;
    }
    .style2
    {
        width: 100%;
    }
</style>
<div class=" block">
</div>
<div class=" block">
</div>
<div class="Post">
    <div class="Post-tl">
    </div>
    <div class="Post-tr">
    </div>
    <div class="Post-bl">
    </div>
    <div class="Post-br">
    </div>
    <div class="Post-tc">
    </div>
    <div class="Post-bc">
    </div>
    <div class="Post-cl">
    </div>
    <div class="Post-cr">
    </div>
    <div class="Post-cc">
    </div>
    <div class="Post-body">
        <div class="Post-inner">
            <div class="PostContent">
                <h2 class="PostHeaderIcon-wrapper">
                    PHONE BRAND</h2>
                <div class="PostHeaderIcons metadata-icons">
                    <div id="message_green" runat="server" style="display: none">
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <td class="green-left">
                                    Infomation update sucessfully. <a href="Booking.aspx">New Booking.</a>
                                </td>
                                <td class="green-right">
                                    <a class="close-green">
                                        <img alt="" src="image/icon_close_green.gif" /></a>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <asp:TabContainer ID="TabContainer1" runat="server">
                        <asp:TabPanel ID="tab1" runat="server">
                            <HeaderTemplate>
                                <asp:Label ID="lbPhoneBrand" runat="server" Text="Phone Brand" Style="font-size: 13px;
                                    line-height: 15px"></asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table style="width: 100%">
                                    <tr>
                                        <td>
                                            <table style="height: 60px" border="0" width="100%">
                                                <tr>
                                                    <td style="width: 150px">
                                                        Phone Brand Name
                                                    </td>
                                                    <td>
                                                        <label>
                                                            <asp:TextBox ID="txtPhoneBrandName" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPhoneBrandName"
                                                                ErrorMessage="*" SetFocusOnError="True" ValidationGroup="validSave"></asp:RequiredFieldValidator>
                                                        </label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2" style="text-align: center">
                                                        <asp:Label ID="Label3" runat="server" Style="color: Red" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: center" colspan="2">
                                                        <asp:Button ID="btnsavenew" runat="server" Text="SAVE" ValidationGroup="validSave"
                                                            OnClick="btnsavenew_Click1" />
                                                        <asp:Button ID="btReset" runat="server" OnClick="btReset_Click" Text="RESET" />
                                                    </td>
                                                </tr>
                                            </table>
                                            <asp:Panel ID="panel" runat="server" Height="400px" ScrollBars="Auto">
                                                <asp:GridView ID="grdPhoneBrand" runat="server" AutoGenerateColumns="False" CssClass="grd"
                                                    OnRowDataBound="grdPhoneBrand_RowDataBound">
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="Number">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblIdBrand" runat="server" Text='<%# Eval("IDBrand") %>'></asp:Label>
                                                                <asp:HiddenField ID="hirID" runat="server" />
                                                                <%--<asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("IDBrand") %>'>HyperLink</asp:HyperLink>--%>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="80px" />
                                                        </asp:TemplateField>
                                                        <asp:HyperLinkField DataNavigateUrlFields="IDBrand" DataNavigateUrlFormatString="~/Admin/PhoneBrand.aspx?id={0}"
                                                            DataTextField="BrandName" HeaderText="Brand Name" />
                                                        <asp:TemplateField HeaderText="Model">
                                                            <ItemTemplate>
                                                                <asp:DropDownList ID="drModel" runat="server" Width="120px">
                                                                </asp:DropDownList>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="150px" />
                                                            <ItemStyle HorizontalAlign="Center" Width="150px" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Update Brand">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="hyUpdate" runat="server" NavigateUrl='<%# "~/Admin/PhoneBrand.aspx?id=" + Eval("IDBrand")%>'>Edit</asp:HyperLink>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="150px" />
                                                            <ItemStyle HorizontalAlign="Center" Width="150px" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Delete">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="btnDelImg" runat="server" CausesValidation="false" CommandName="delete"
                                                                    CommandArgument='<%# Eval("IDBrand") %>' ImageUrl="~/Admin/image/del.gif" OnClick="btnDelImg_Click" />
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                                    <HeaderStyle CssClass="grdHeader" />
                                                    <EditRowStyle BackColor="#2461BF" />
                                                    <AlternatingRowStyle CssClass="grdAlternateRow" />
                                                    <PagerSettings PageButtonCount="6" />
                                                    <RowStyle CssClass="grdRow" />
                                                </asp:GridView>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </asp:TabPanel>
                        <asp:TabPanel ID="TabPanel1" runat="server">
                            <HeaderTemplate>
                                <asp:Label ID="lbModel" runat="server" Text="Model" Style="font-size: 13px; line-height: 15px"></asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table style="width: 100%">
                                    <tr>
                                        <td>
                                            <table style="height: 60px" border="0" width="70%">
                                                <tr>
                                                    <td style="width: 100px">
                                                        Model
                                                    </td>
                                                    <td>
                                                        <label>
                                                            <asp:TextBox ID="txtModel" runat="server" CssClass="inp-form"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtModel"
                                                                ErrorMessage="*" SetFocusOnError="True" ValidationGroup="validSave1"></asp:RequiredFieldValidator>
                                                        </label>
                                                    </td>
                                                    <td>
                                                        Brand Name
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="drBrandM" runat="server" Width="150px">
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td style="width: 150px">
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2" style="text-align: center">
                                                        <asp:Label ID="Label2" runat="server" Style="color: Red" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: center" colspan="2">
                                                        <asp:Button ID="btsaveModel" runat="server" CssClass="button_all" OnClick="btsaveModel_Click"
                                                            Text="SAVE" ValidationGroup="validSave1" />
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="btResetModel" runat="server" OnClick="btResetModel_Click" Text="RESET" />
                                                    </td>
                                                </tr>
                                            </table>
                                            <asp:Panel ID="panel1" runat="server" Height="400px" ScrollBars="Auto">
                                                <asp:GridView ID="grdModel" runat="server" AutoGenerateColumns="False"
                                                    CssClass="grd"  OnRowDataBound="grdModel_RowDataBound">
                                                    <Columns>
                                                        <asp:HyperLinkField DataNavigateUrlFields="IDModel" DataNavigateUrlFormatString="~/Admin/PhoneBrand.aspx?id1={0}"
                                                            DataTextField="IDModel" HeaderText="ID Model" HeaderStyle-Width="80px" />
                                                        <asp:TemplateField HeaderText="Model Name">
                                                            <ItemTemplate>
                                                                <%# Eval("Model") %>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" Width="200px" />
                                                        </asp:TemplateField>
                                                        
                                                           <asp:TemplateField HeaderText="Brand Name">
                                                            <ItemTemplate>
                                                                <%# Eval("BrandName")%>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" Width="180px" />
                                                        </asp:TemplateField>
                                                        
                                                        <asp:TemplateField HeaderText="Update Model">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="hyUpdate" runat="server" NavigateUrl='<%# "~/Admin/PhoneBrand.aspx?id1=" + Eval("IDModel")%>'>Edit</asp:HyperLink>
                                                            </ItemTemplate>
                                                            <HeaderStyle Width="150px" />
                                                            <ItemStyle HorizontalAlign="Center" Width="150px" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Delete">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="btnModelDelete" runat="server" CausesValidation="false" CommandName="delete"
                                                                    CommandArgument='<%# Eval("IDModel") %>' ImageUrl="~/Admin/image/del.gif" OnClick="btnModelDelete_Click" />
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                                    <HeaderStyle CssClass="grdHeader" />
                                                    <EditRowStyle BackColor="#2461BF" />
                                                    <AlternatingRowStyle CssClass="grdAlternateRow" />
                                                    <PagerSettings PageButtonCount="6" />
                                                    <RowStyle CssClass="grdRow" />
                                                </asp:GridView>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </asp:TabPanel>
                    </asp:TabContainer>
                </div>
                <div class="PostContent">
                </div>
                <div class="right_three r-align  ">
                    <!--Content-->
                    <p class="main">
                        <%--<asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("IDBrand") %>'>HyperLink</asp:HyperLink>--%>
                        <%# Eval("Model") %>
                    </p>
                    <!--clear content -->
                </div>
                <div class="cleared">
                </div>
                <div class="PostFooterIcons metadata-icons">
                </div>
            </div>
            <div class="cleared">
            </div>
        </div>
    </div>
</div>
<table class="style2">
    <tr>
        <td>
            &nbsp;
        </td>
    </tr>
</table>
